package com.example.demo.entity;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.io.Serializable;

/**
 * 轮播图表(Carousel)表实体类
 *
 * @author makejava
 * @since 2025-08-26 17:20:47
 */
@SuppressWarnings("serial")
public class Carousel extends Model<Carousel> {
//主键
    private Long id;
//对应的商品id
    private Long goodId;
//播放顺序
    private Integer showOrder;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getGoodId() {
        return goodId;
    }

    public void setGoodId(Long goodId) {
        this.goodId = goodId;
    }

    public Integer getShowOrder() {
        return showOrder;
    }

    public void setShowOrder(Integer showOrder) {
        this.showOrder = showOrder;
    }

    /**
     * 获取主键值
     *
     * @return 主键值
     */
    @Override
    public Serializable pkVal() {
        return this.id;
    }
}

